import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/bizinventorycheckdetail/` + url, ...arg)

/**
 * 扫码盘库明细Api接口管理器
 *
 * @author Jonathan
 * @date  2023/11/07 11:34
 **/
export default {
	// 获取扫码盘库明细分页
	bizInventoryCheckDetailPage(data) {
		return request('page', data, 'get')
	},
	// 获取扫码盘库明细列表
	bizInventoryCheckDetailList(data) {
		return request('list', data, 'get')
	},
	// 提交扫码盘库明细表单 edit为true时为编辑，默认为新增
	bizInventoryCheckDetailSubmitForm(data, edit = false) {
		return request(edit ? 'add' : 'edit', data)
	},
	// 删除扫码盘库明细
	bizInventoryCheckDetailDelete(data) {
		return request('delete', data)
	},
	// 获取扫码盘库明细详情
	bizInventoryCheckDetailDetail(data) {
		return request('detail', data, 'get')
	}
}
